const baseUrl = 'http://123.207.32.32:8000'

function request(options) {
  return new Promise((resovle, reject) => {
    wx.request({
      url: baseUrl + options.url,
      method: options.method || 'get',
      data: options.data,
      success: resovle,
      fail: reject
    })
  })
}

export default request